import React, { Component } from 'react'
import { Button, Row, Col, Divide } from 'antd';

export default class JiaJu extends Component {
  toPath = (path) => {
    let { history } = this.props
    history.push(path)
  }
  loginOut = () => {
    let { history } = this.props
    localStorage.removeItem("token")
    history.replace("/login")
  }
  render() {
    return (
      <div>
        <div>
          <Row justify="center">
            <Col span={4}>
              <Button type="primary" onClick={() => { this.toPath("/index/goods/jiaju") }}>to jiaju</Button>
            </Col>
            <Col span={4}>
              <Button type="primary" onClick={() => { this.toPath("/index/goods/jiaju/yizi") }}>to yizi</Button>
            </Col>
            <Col span={4}>
              <Button type="primary" onClick={() => { this.toPath("/index/goods/jiaju/zhuozi") }}>to zhuozi</Button>
            </Col>

          </Row>
        </div>
        JiaJu
        {this.props.children}
      </div>
    )
  }
}
